package com.wissen.polymorphism;


/**
 * @author wissen16
 * class intern having emp name as attributes,chane_emp overloaded method and 
 * teamMember_onProject method to be override by its base class object
 */
public class Intern extends Tech {
	private String emp1="mayur";
	private String emp2="vaibhav";
	private String emp3="rituraj";
	/**
	 * this method to change employee
	 */
	public void change_emp() {
		emp1="saurabh";
	}
	/**
	 * this method to change employee on e number
	 */
	public void change_emp(int e) {       //function overloading
		if(e==1)
		emp1="rupeshit";
	}
	/**
	 * this method to display team member s on project
	 */
	public void TeamMember_onProject() {
	System.out.println("Team Members:\n"+emp1+"\n"+emp2+"\n"+emp3);
	}
}
